package Classwork;
     class C{
        double ra;
        int he;
        double pi=3.14;
        double area(){
            return pi*ra*ra;
        }
        double vo(){
           return area()*he;
        }
    }
public class Work07 {
    public static void main(String[] args) {
        C sc= new C();
        sc.ra=2.8;
        sc.he=5;
        System.out.println("圆的半径="+sc.ra);
        System.out.println("圆的高="+sc.he);
        System.out.println("圆柱");
        System.out.println("底面积="+ sc.area());
        System.out.println("圆柱体体积="+sc.vo());
    }
}

